package com.foreknow.demo3;

public class Swallow extends Bird{
    public void fly(){
        System.out.println("fly...");
    }
    public static void main(String[] args) {
        Swallow sw = new Swallow();
        sw.name="aa";
        sw.color="yellow";
        sw.eat();
        sw.fly();
        Swallow sw1=new Swallow();
        sw.name="bb";
        sw.color="red";
        sw.eat();
        sw.fly();
    }
}
